<?php
include('modules/modinit.php');
$mtLinks = tPreset.'m_customlinks';

$trap = '';
$mLinks_q = mysql_query("SELECT * FROM ".$mtLinks." WHERE block = '".$mod['block']."' ORDER BY id ASC")or die(mysql_error());
while($mLinks = mysql_fetch_object($mLinks_q))
{
	$trap .= $mod['pre'].'<a href="'.$mLinks->location.'" title="'.$mLinks->title.'">'.$mLinks->text.'</a>'.$mod['post'];
}

echo block($block['title'], $trap, $block['tmp']);
